<?php
class Computer {
	private $ram;
	private $cpu;
	private $hdd;
	private $price;
	
	public function __construct($ram, $cpu, $hdd, $price) {
		$this->ram = $ram;
		$this->cpu = $cpu;
		$this->hdd = $hdd;
		$this->price = $price;
	}
	
	public function getRam() {
		return $this->ram;
	}
	public function getCpu() {
		return $this->cpu;
	}
	public function getHdd() {
		return $this->hdd;
	}
	public function getPrice() {
		return $this->price;
	}
	public function setRam($x) {
		$this->ram = $x;
	}
	public function setCpu($x) {
		$this->cpu = $x;
	}
	public function setHdd($x) {
		$this->hdd = $x;
	}
	public function setPrice($x) {
		$this->price = $x;
	}
	
	public function sum($quant) {
		return $this->price * $quant;
	}
}